package com.zhouke.certificate.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author 周科
 * @since 2022-03-23
 */
@TableName("sys_user")
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      private String username;

      private String password;

      private String realName;

      private String sex;

      private String college;

      private String major;

      private String email;

      private String phone;

      private String identity;

      private Date createTime;

      private String avatarUrl;

      private String role;

      @TableField(exist = false)
      List<Course> courses;

      @TableField(exist = false)
      List<Course> stuCourses;
}
